Skip to content

feat(poly deps): view usage of brick interfaces#436

Merged
DavidVujic merged 3 commits into
mainfrom
check-all-brick-interfaces
Apr 11, 2026
Merged

feat(poly deps): view usage of brick interfaces#436
DavidVujic merged 3 commits into
mainfrom
check-all-brick-interfaces

Conversation

@DavidVujic
Copy link
Copy Markdown
Owner

@DavidVujic DavidVujic commented Apr 11, 2026

Description

Adding visualization for brick interface usage. The new view will report if the defined brick interfaces are bypassed.

Previouly, it has been possible to view the usage of an individual brick (announced here), but with the changes in this Pull Request, bypassed interface usage is visualized for all bricks.

Usage:

poly deps --interface

This will append a table of any usages that isn't going through the defined brick interface (i.e. the __init__.py of the brick).

Example output:

ℹ Found in the_other_brick: hello_world is not part of the public interface of my_brick_x. 
ℹ Found in another_brick: greeting is not part of the public interface of my_brick_y. 

Motivation and Context

This feature will make it possible to inspect how the bricks are used across the Polylith workspace. With the notifications about usage outside of the interface boundaries, you will be able to identify any unexpected usages.

How Has This Been Tested?

✅ CI
✅ Local run of the poly deps command

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

@DavidVujic DavidVujic force-pushed the check-all-brick-interfaces branch from f95a69d to 66ba57e Compare April 11, 2026 12:19
@sonarqubecloud
Copy link
Copy Markdown

@DavidVujic DavidVujic changed the title Check all brick interfaces feat(poly deps): view usage of brick interfaces Apr 11, 2026
@DavidVujic DavidVujic marked this pull request as ready for review April 11, 2026 12:42
@DavidVujic DavidVujic merged commit 3e1d256 into main Apr 11, 2026
4 checks passed
@DavidVujic DavidVujic deleted the check-all-brick-interfaces branch April 11, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant